package cn.com.bluemoon.daps.model.entity;

import cn.com.bluemoon.daps.common.domain.BaseModel;
import cn.com.bluemoon.daps.model.vo.score.TableScoreRuleCode;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors
@ApiModel(value = "DapDataModelTableScoreRule", description = "数据模型-模型评分表")
public class DapDataModelTableScoreRule extends BaseModel<DapDataModelTableScoreRule> implements Serializable {

    @ApiModelProperty("评分内容")
    private String scoreContent;

    @ApiModelProperty("评分阈值")
    private String scoreThreshold;

    @ApiModelProperty("评分权重")
    private Integer scoreWeight;

    @ApiModelProperty("是否生效 false表示否 true表示是")
    private Boolean isEffect;

    @ApiModelProperty("评分说明")
    private String description;

    @ApiModelProperty("每个规则对应的唯一码值")
    private TableScoreRuleCode ruleCode;

    @ApiModelProperty("具体分数")
    @TableField(exist = false)
    private double score;
}
